import React from "react";
import CommonTitle from "../../components/CommonTitle";

class result extends React.Component {
    constructor(props) {
        super(props);
    }

    componentWillMount() {
        document.title = "支付成功";
    }

    render() {
        return(
            <div>
                <div className="resultConainer">
                    <h3>恭喜你，订单支付成功</h3>
                    {/*<h3>请等待系统为您揭晓</h3>*/}

                    <div className="btns">
                        <button className="blueBtn" onClick={this._jump1.bind(this)}>再逛逛</button>
                        <button onClick={this._jump2.bind(this)}>查看订单记录</button>
                    </div>
                </div>

            </div>
        )
    }
    _jump1(){
        this.context.router.push({
            pathname:"/mall/index"
        });
    }
    _jump2(){
        this.context.router.push({
            pathname:"/mall/myOrder"
        });
    }
}




result.contextTypes = {
    router:React.PropTypes.object
}


export default result;


